package com.hyt.it.ogt.ykcj.domain.grade;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyt.it.ogt.ykcj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 发布考试成绩信息表 exam_publish_info
 *
 * @author liying
 * @date 2021-11-18
 */
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ExamPublishInfoVo对象", description = "考生发布信息对象")
@Data
public class ExamPublishInfo extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 考试ID
     */
    private String examId;

    /**
     * 发布类型(0:成绩显示;1:允许查看试卷;2:成绩复核申请)
     */
    private Integer publishType;

    /**
     * 显示类型(0:显示总成绩;1:显示考试结果;2:显示科目信息;3:显示正确答案和解析;4:不显示正确答案和解析)
     */
    private String showType;

    /**
     * 查看类型类型(0:随时;1:固定时间)
     */
    private Integer seeType;

    /**
     * 开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDay;

    /**
     * 结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDay;

    /**
     * 显示勾选
     */
    private Integer showPublishTypeResult;
}
